<div class="panel panel-default panel-intro">
    <div class="panel-body">
        <table class="table table-striped table-bordered table-hover table-nowrap">
            <tr>
                <td>客户：</td>
                <td>{$row.business.nickname}</td>
                <td>联系方式：</td>
                <td>{$row.business.mobile}</td>
            </tr>

            {foreach($GuestData as $item)}
            <tr>
                <td>住户：</td>
                <td>{$item.nickname}</td>
                <td>住户联系方式：</td>
                <td>{$item.mobile}</td>
            </tr>
            {/foreach}
            <tr>
                <td>订单号：</td>
                <td>{$row.code}</td>
                <td>订单状态：</td>
                <td>{$row.status_text}</td>
            </tr>
            <tr>
                <td>订单原价：</td>
                <td>{$row.oprice}</td>
                <td>订单实际支付价格：</td>
                <td>{$row.price}</td>
            </tr>
            <tr>
                {if condition="$row.cid"}
                    <td>优惠券名：</td>
                    <td>{$row.coupon.title}</td>
                    <td>优惠券折扣：</td>
                    <td>{$row.coupon.rate_text}</td>
                {/if}
            </tr>
            <tr>
                <td>入住时间：</td>
                <td>{$row.starttime_text}</td>
                <td>退房时间：</td>
                <td>{$row.endtime_text}</td>
            </tr>

            <!-- 退货数据库字段 -->
            <tr>
                {if condition="$row.defund"}
                    <td>退货原因：</td>
                    <td>{$row.defund}</td>
                {/if}
            </tr>

            <tr>
                {if condition="$row.comment"}
                    <td>订单评分：</td>
                    <td>{$row.rate}</td>
                    <td>订单评价：</td>
                    <td>{$row.comment}</td>
                {/if}
            </tr>

        </table>

        <table class="table table-striped table-bordered table-hover table-nowrap">
            <tr>
                <th>房间名</th>
                <th>居住人数</th>
                <th>房间面积/平方米</th>
                <th>房间价格/晚</th>
            </tr>
            
            <tr>
                <td>{$RoomData.name}</td>
                <td>{$RoomData.live}</td>
                <td>{$RoomData.area}</td>
                <td>{$RoomData.price}</td>
            </tr>
        </table>
    </div>
</div>